package com.project.bean;

import java.util.List;

/**
 * 订单表实体类
 */
public class OrderBean {
    /**订单编号*/
    private Integer orId;
    /**收货人*/
    private String orName;
    /**收货地址*/
    private String orAddress;
    /**订单明细集合*/
    private List<CommodityBean> comBean;

    public OrderBean() {
    }

    public OrderBean(String orName, String orAddress) {
        this.orName = orName;
        this.orAddress = orAddress;
    }

    public OrderBean(String orName, String orAddress, List<CommodityBean> comBean) {
        this.orName = orName;
        this.orAddress = orAddress;
        this.comBean = comBean;
    }

    public Integer getOrId() {
        return orId;
    }

    public void setOrId(Integer orId) {
        this.orId = orId;
    }

    public String getOrName() {
        return orName;
    }

    public void setOrName(String orName) {
        this.orName = orName;
    }

    public String getOrAddress() {
        return orAddress;
    }

    public void setOrAddress(String orAddress) {
        this.orAddress = orAddress;
    }

    public List<CommodityBean> getComBean() {
        return comBean;
    }

    public void setComBean(List<CommodityBean> comBean) {
        this.comBean = comBean;
    }

    @Override
    public String toString() {
        return "OrderBean{" +
                "orId=" + orId +
                ", orName='" + orName + '\'' +
                ", orAddress='" + orAddress + '\'' +
                ", comBean=" + comBean +
                "}\n";
    }
}
